package com.ruoyi.spicfz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 个人子信息对象 spicfz_child
 * 
 * @author ruoyi
 * @date 2021-08-28
 */
public class Child extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 父编号 */
    private Long parentid;

    /** 部门 */
    @Excel(name = "部门")
    private String department;

    /** 调入岗位 */
    @Excel(name = "调入岗位")
    private String inpost;

    /** 调离岗位 */
    @Excel(name = "调离岗位")
    private String outpost;

    /** 调入人数 */
    @Excel(name = "调入人数")
    private Integer innum;

    /** 调离人数 */
    @Excel(name = "调离人数")
    private Integer outnum;

    /** 调入日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调入日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date indate;

    /** 调离日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调离日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outdate;

    /** 调入工资 */
    @Excel(name = "调入工资")
    private BigDecimal insalary;

    /** 调离工资 */
    @Excel(name = "调离工资")
    private BigDecimal outsalary;

    /** 调入原因 */
    @Excel(name = "调入原因")
    private String inreason;

    /** 调离原因 */
    @Excel(name = "调离原因")
    private String outreason;

    /** 简介 */
    @Excel(name = "简介")
    private String inctroduction;

    /** 简历 */
    @Excel(name = "简历")
    private String resume;

    /** 调入路径 */
    @Excel(name = "调入路径")
    private String inpath;

    /** 调离路径 */
    @Excel(name = "调离路径")
    private String outpath;

    /** 状态（0正常 1异常） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentid(Long parentid) 
    {
        this.parentid = parentid;
    }

    public Long getParentid() 
    {
        return parentid;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setInpost(String inpost) 
    {
        this.inpost = inpost;
    }

    public String getInpost() 
    {
        return inpost;
    }
    public void setOutpost(String outpost) 
    {
        this.outpost = outpost;
    }

    public String getOutpost() 
    {
        return outpost;
    }
    public void setInnum(Integer innum) 
    {
        this.innum = innum;
    }

    public Integer getInnum() 
    {
        return innum;
    }
    public void setOutnum(Integer outnum) 
    {
        this.outnum = outnum;
    }

    public Integer getOutnum() 
    {
        return outnum;
    }
    public void setIndate(Date indate) 
    {
        this.indate = indate;
    }

    public Date getIndate() 
    {
        return indate;
    }
    public void setOutdate(Date outdate) 
    {
        this.outdate = outdate;
    }

    public Date getOutdate() 
    {
        return outdate;
    }
    public void setInsalary(BigDecimal insalary) 
    {
        this.insalary = insalary;
    }

    public BigDecimal getInsalary() 
    {
        return insalary;
    }
    public void setOutsalary(BigDecimal outsalary) 
    {
        this.outsalary = outsalary;
    }

    public BigDecimal getOutsalary() 
    {
        return outsalary;
    }
    public void setInreason(String inreason) 
    {
        this.inreason = inreason;
    }

    public String getInreason() 
    {
        return inreason;
    }
    public void setOutreason(String outreason) 
    {
        this.outreason = outreason;
    }

    public String getOutreason() 
    {
        return outreason;
    }
    public void setInctroduction(String inctroduction) 
    {
        this.inctroduction = inctroduction;
    }

    public String getInctroduction() 
    {
        return inctroduction;
    }
    public void setResume(String resume) 
    {
        this.resume = resume;
    }

    public String getResume() 
    {
        return resume;
    }
    public void setInpath(String inpath) 
    {
        this.inpath = inpath;
    }

    public String getInpath() 
    {
        return inpath;
    }
    public void setOutpath(String outpath) 
    {
        this.outpath = outpath;
    }

    public String getOutpath() 
    {
        return outpath;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentid", getParentid())
            .append("department", getDepartment())
            .append("inpost", getInpost())
            .append("outpost", getOutpost())
            .append("innum", getInnum())
            .append("outnum", getOutnum())
            .append("indate", getIndate())
            .append("outdate", getOutdate())
            .append("insalary", getInsalary())
            .append("outsalary", getOutsalary())
            .append("inreason", getInreason())
            .append("outreason", getOutreason())
            .append("inctroduction", getInctroduction())
            .append("resume", getResume())
            .append("inpath", getInpath())
            .append("outpath", getOutpath())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
